package com.htjx.mall.commons.mappers;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.htjx.mall.commons.models.cart.CartItem;
import com.htjx.mall.commons.models.product.Product;

public interface ProductMapper {
	
	public void insertOne(Product product); 
	
	public void updateOne(Product product);
	
	public Product selectOne(long id);
	
	public List<Product> selectByProperty(@Param("p_name") String propertyName, @Param("p_value") String propertyValue);
	
	public List<Product> page(Map<String, Object> params);
	
	public int pageCount(Map<String, Object> params);
	
	public CartItem selectCartItem(long specification_id);
}
